//
// Created on 2024/8/25.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef ISSUETEST_ARKUI_ROW_H
#define ISSUETEST_ARKUI_ROW_H

#include "../node/arkui_common_node.h"

namespace NativeArkUI {
class NativeRow : public ArkUICommonNode {
public:
    NativeRow() : ArkUICommonNode(ARKUI_NODE_ROW) {}

    void SetAlignItems(ArkUI_VerticalAlignment verticalAlignment) {
        ArkUI_NumberValue value[] = {{.i32 = verticalAlignment}};
        ArkUI_AttributeItem item = {value, 1};
        arkUINativeNodeApi->setAttribute(nodeHandle, NODE_ROW_ALIGN_ITEMS, &item);
    }
};
} // namespace NativeArkUI

#endif // ISSUETEST_ARKUI_ROW_H
